package net.yla.smartbus.module.ba.right.admin.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import net.yla.smartbus.core.annotation.PojoCastToJson;

/**
 * @Date: 2020-08-17 9:58
 * @Author: Being Nobody
 * @Version: 1.0
 */
@Data
public class AdminDO implements Serializable {
    private static final long serialVersionUID = -2243808708269961246L;
    @PojoCastToJson("id")
    private Integer adminId;
    @PojoCastToJson("loginId")
    private String loginId;
    @PojoCastToJson("loginPwd")
    private String loginPwd;
    @PojoCastToJson("state")
    private Integer state;
    @PojoCastToJson("lastLoginTime")
    private LocalDateTime lastLoginTime;
    @PojoCastToJson("lockedTime")
    private LocalDateTime lockedTime;
    @PojoCastToJson("lastLoginIP")
    private Long lastLoginIP;

    private Integer loginCount;

    private Integer errorCount1;

    private Integer errorCount2;

    private Integer errorCount3;

    private Integer errorCount4;

    private Integer errorCount5;

    private LocalDateTime lastErrorTime;

    private Long stamp1;

    private Long stamp2;

    private Long stamp3;

    private Long stamp4;

    private Long stamp5;

    @PojoCastToJson("nickName")
    private String nickName;
    @PojoCastToJson("gender")
    private Integer gender;

    private Integer platformId;

    private Long uniqueId;

    private Integer version;

    private Integer hidden;
    @PojoCastToJson("disabled")
    private Integer disabled;

    private Integer sortOrder;
    @PojoCastToJson("creationTime")
    private LocalDateTime creationTime;

    private LocalDateTime lastModifyTime;

    private Integer flags;
}
